//*****************************************************************************
// loggingSupport.h
//
// Copyright 2009 by Magpie, http://www.magpieti.com
// 
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// 
//     http://www.apache.org/licenses/LICENSE-2.0
// 
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//*****************************************************************************

#ifndef LOGGING_SUPPORT_H
#define LOGGING_SUPPORT_H

#ifdef TRACE_LOGGING
  #undef DEBUG_LOGGING
  #define DEBUG_LOGGING
  #define LOG_TRACE(...) printf(__VA_ARGS__)
  #define traceDumpAllEvents() dumpAllEvents()
  #define traceDumpEvent(x) dumpEvent(x)
#else
  #define LOG_TRACE(...) do { ; } while(FALSE)
  #define traceDumpAllEvents() do { ; } while(FALSE)
  #define traceDumpEvent(x) do { ; } while(FALSE)
#endif

#ifdef DEBUG_LOGGING
  #define LOG_DEBUG(...) printf(__VA_ARGS__)
#else
  #define LOG_DEBUG(...) do { ; } while(FALSE)
#endif

#endif // LOGGING_SUPPORT_H
